package com.ls.common.baseClass.mongodb;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.CreatedBy;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedBy;
import org.springframework.data.annotation.LastModifiedDate;

import java.io.Serializable;
import java.util.Date;

/**
 * @author: xiaosu
 * @date: 2018-09-20  21:03
 */

@Data
@ApiModel
public class AbstractAuditingEntity extends ToString implements Serializable {

    @CreatedBy
    @ApiModelProperty(value = "创建人")
    protected String createdBy;

    @CreatedDate
    @ApiModelProperty(value = "创建时间")
    protected Date createTime;

    @LastModifiedBy
    @ApiModelProperty(value = "修改人")
    protected String lastModifiedBy;

    @LastModifiedDate
    @ApiModelProperty(value = "修改时间")
    protected Date   updateTime;

}
